﻿using SharpKit.JavaScript;

namespace SharpKit.Onx.Playground
{
    [JsType(JsMode.Global, Filename = "res/On{x}.js")]
    public class SharpKitPageScript : OnxContextBase
    {
        [JsMethod(GlobalCode=true)]
        static void Configure()
        {
            Device.Screen.Unlock += new System.Action(delegate()
                {
                    var notification = Device.Notifications.CreateNotification("Hello world!");
                    notification.Show();
                    Console.Log("Hello World notification was sent to the phone");
                });         
        }
    }
}